package com.stormrage.entity.edu.rep;

import java.io.Serializable;

import com.stormrage.entity.edu.EduProject;

public class EduProjectRep implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -6396124547155102089L;

	// ------------------------------- Fields -------------------------------

	private Integer seq;

	private Integer id;

	private String project;

	private Integer cost;

	private Integer count;

	// ------------------------------- Fields -------------------------------

	public EduProjectRep() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProject() {
		return project;
	}

	public void setProject(String project) {
		this.project = project;
	}

	public Integer getCost() {
		return cost;
	}

	public void setCost(Integer cost) {
		this.cost = cost;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	// ------------------------------- Fields -------------------------------

	public static EduProjectRep instance(EduProject arg0, Integer arg1, Integer arg2) {
		EduProjectRep entity = new EduProjectRep();
		entity.setSeq(arg1);
		entity.setId(arg0.getId());
		entity.setProject(arg0.getProject());
		entity.setCost(arg0.getCost());
		entity.setCount(arg2);

		System.out.println(" entity为 " + entity.toString());

		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : id - " + id + " seq - " + seq + " project - " + project + " cost - " + cost
				+ " count - " + count;
	}

}
